home *** CD-ROM | disk | FTP | other *** search
- Path: news.rain.org!usenet
- From: "Guus Leeuw jr." <guusl@eiffel.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Template Troubles
- Date: Mon, 26 Feb 1996 09:04:00 -0800
- Organization: Interactive Software Engineering Inc. http://www.eiffel.com/
- Message-ID: <3131E800.7730049@eiffel.com>
- References: <4grbtb$nog@aimnet.aimnet.com>
- NNTP-Posting-Host: @outback.eiffel.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; Linux 1.2.8 i586)
-
- Kris Bosland wrote:
- >
- [snip snip]
- >
- > test.cc:
- > ----------------------------------------------------------------
- > template <class data_t> class List {
- > public:
- > data_t data;
- > }
- >
- > void main( int argc, char **argv )
- > {
- > List<char *> string_list;
- >
- > }
- [snip snip]
-
- Well, you're just missing a `;' after your class definition. After inserting that one
- in line 4, it compiles fine with my g++ 2.6.3.
-
- Hope this helps,
- Guus
-